<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/views/include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="/views/include/nocachehead.jsp"%>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/validator/newAlbumForm.js"></script>
<title>创建相册</title>
</head>
<body>
	<div>
		<!-- main content start -->
		<div>
			<c:out value="${requestScope.errMsg}" escapeXml="false"/>
			<form id="newAlbumForm" name="newAlbumForm" action="${pageContext.request.contextPath}/album/newalbum.html" method="post" >
				<div id="editAlbum">
					<div class="">
						<p>
							<label>相册名称:</label>
							<input name="albumName" type="text" maxlength="20" size="26"/>
						</p>
						<p>
							<label>地点:</label>
							<input name="place" type="text" maxlength="30" size="26"/>
						</p>
						<p style="width:200px">
							<label>描述:</label>
							<textarea name="description" rows="10" cols="40"></textarea>
						</p>
						<p>
							<label>谁能浏览:</label>
							<select name="authority">
								<option value="0" selected="selected">所有人</option>
								<option value="10">关注我的人</option>
								<option value="15">仅自己</option>
							</select>
						</p>
						<input type="hidden" name="submitToken" value="<skyline:sessionAttribute key="SESSION_SUBMIT_TOKEN" />"/> 
					</div>
				</div>
				<div class="">
					<button type="submit" class="" >创建</button>
					<button type="button" class="" onclick="window.location='${pageContext.request.contextPath}/album/list/${requestScope.ownerId}.html';">取消</button>
				</div>
			</form>
				<script type="text/javascript">
					(function($){$(document).ready(function(){
						$('#newAlbumForm').submit(function(){
							return true;
						});
					});})(jQuery);
				</script>
		</div>
		<!-- main content end -->
	</div>
</body>
</html>